<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0;}

        .warp{margin-top: 20px}
        .lyb{display: flex;border-bottom: 1px solid #f2f2f2;margin-top:20px;padding-left:10px;}
        .lyb-l{flex:0 0 30px;width: 30px;border-radius: 90%;margin-right: 20px}
        .lyb-l img{width: 100%}
        .lyb-r{flex: 1}
        .lyb-r h3{font-size: 14px;color: #406599;font-weight: normal}
        .lyb-r p{font-size: 14px;margin: 10px 0}

        .msg-content {margin-top: 50px;border:1px solid #f2f2f2;}
        .msg li{padding:30px 0;border-bottom: 1px dashed #e5e5e5;}
        .msg span{line-height: 27px;}
        .msg .msg-content{border:1px solid #dedede;padding:20px 10px;}

        .msg-page{text-align: center;margin-top:10px;}
        .msg-page li{float:left;margin-left:2px;}
        .msg-page a,.msg-page span{display: block;padding:0px 10px;line-height: 30px;cursor: pointer;border: 1px solid #C2D5E3;}
        .msg-page .active{color:red;}
        .clearfix:after{
            content: '';
            height:0;
            display: block;
            clear: both;
            overflow: hidden;
        }
    </style>
</head>
<body>
<div class="msg-content">
    <volist name="msgData" id="vo">
        <div class="lyb">
            <div class="lyb-l">
                <php>
                    if($vo->avatar){
                    $avatar = '/upload/'.$vo->avatar;
                    }else{
                    $avatar ='__PLUGIN_TMPL__/public/assets/images/default.jpg';
                    }
                </php>
                <img src="{$avatar}" alt="">
            </div>
            <div class="lyb-r">
                <h3>客户留言 <span>{$vo.createtime}</span></h3>
                <p>{$vo.msg}</p>
            </div>
        </div>
    </volist>
</div>

<div class="msg-page">
    <ul class="clearfix" style="display: inline-block;">
        {$msgData->render()}
    </ul>
</div>

</body>
</html>